package com.aigou.admin.aigouspringboot.service;

import com.aigou.admin.aigouspringboot.entity.Product;
import com.aigou.admin.aigouspringboot.entity.ReceivingAddress;
import com.aigou.admin.aigouspringboot.entity.ShopCart;
import com.aigou.admin.aigouspringboot.entity.dto.ShopCartProductDTO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ShopCartService {

    List<ShopCart> selectAll();

    PageInfo<ShopCart> selectShopCartListByPage(Integer current);

    int deleteById(String id);

    ShopCart selectById(String id);


    int edit(ShopCart shopCart);

    int save(ShopCart shopCart);

    List<ReceivingAddress> getAddress(String userId);

    List<Product> getProduct(String userId);

    int addProductToCart(ShopCartProductDTO shopCartProductDTO);
}
